home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
cat3
/
SetGrid.3
< prev
next >
Wrap
Text File
|
1994-09-20
|
3KB
|
133 lines
Tk_SetGrid(3) Tk Library Procedures
_________________________________________________________________
NAME
Tk_SetGrid - control the grid for interactive resizing
SYNOPSIS
#include <tk.h>
Tk_SetGrid(_t_k_w_i_n, _r_e_q_W_i_d_t_h, _r_e_q_H_e_i_g_h_t, _w_i_d_t_h_I_n_c, _h_e_i_g_h_t_I_n_c)
ARGUMENTS
Tk_Window _t_k_w_i_n (in) Token for window.
int _r_e_q_W_i_d_t_h (in) Width in grid units that
corresponds to the pixel
dimension _t_k_w_i_n has
requested via
Tk_GeometryRequest.
int _r_e_q_H_e_i_g_h_t (in) Height in grid units that
corresponds to the pixel
dimension _t_k_w_i_n has
requested via
Tk_GeometryRequest.
int _w_i_d_t_h_I_n_c (in) Width of one grid unit, in
pixels.
int _h_e_i_g_h_t_I_n_c (in) Height of one grid unit,
in pixels.
_________________________________________________________________
DESCRIPTION
Tk_SetGrid is typically invoked by a widget when its setGrid
option is true. This procedure allows a widget to control
interactive resizing of its top-level window so that the
space allocated to the widget is equal to the space
requested by the widget using Tk_GeometryRequest, plus or
minus even multiples of _w_i_d_t_h_I_n_c and _h_e_i_g_h_t_I_n_c. Tk_SetGrid
turns on gridded geometry management for the top-level win-
dow associated with _t_k_w_i_n, and records the relationship
between pixel sizes and grid sizes as defined by _r_e_q_W_i_d_t_h,
_r_e_q_H_e_i_g_h_t, _w_i_d_t_h_I_n_c, and _h_e_i_g_h_t_I_n_c.
See the wm manual entry for complete details on gridded
geometry management. There is currently no way to turn off
gridded geometry management using a C procedure call;
instead, invoke the ``wm grid'' command.
Tk 1
Tk_SetGrid(3) Tk Library Procedures
KEYWORDS
grid, window, window manager
Tk 2